package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Name string `json:"name" form:"name" url:"name" binding:"required"`
}

type Video struct {
	gorm.Model
	Title  string `json:"title" form:"title" url:"title" bind:"required"`
	Image  string `json:"image" form:"image" url:"image" binding:"required"`
	Url    string `json:"url" form:"url" url:"url" binding:"required"`
	Status string `json:"status" form:"status" url:"status" binding:"required"`
	UserId int    `json:"user_id" form:"user_id" url:"user_id" binding:"required"`
	Label  string `json:"label" form:"label" url:"label" binding:"required"`
}
type VideoDate struct {
	gorm.Model
	VideoId int `json:"video_id" form:"video_id" url:"video_id" bind:"required"`
	Like    int `json:"like" form:"like" url:"like" bind:"required"`
	LiuLan  int `json:"liu_lan" form:"liu_lan" url:"liu_lan" bind:"required"`
}
